package com.shushan.mixedexam.bean;

import com.android.net.bean.NetBaseBean;
import com.shushan.mixedexam.oralcalculation.bean.OCExerciseResultBean;
import com.shushan.mixedexam.oralcalculation.bean.OralCalculateExamBean;
import com.shushan.mixedexam.oralcalculation.bean.OralCalculateExerciseBean;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName: OcRecordDetailBean
 * @Desciption: //口算练习记录详情数据bean
 * @author: zhangshihao
 * @date: 2018-09-27
 */
public class OcRecordDetailBean extends NetBaseBean {

    public OralCalculateExamBean examBean;
    public OCExerciseResultBean resultBean;

    @Override
    public void initByJson(JSONObject jsonObject) throws JSONException {
        if(jsonObject == null){
            return;
        }
        examBean = new OralCalculateExamBean();
        examBean.initByJson(jsonObject);

        JSONObject infoObj = jsonObject.optJSONObject("paper_info");
        if(infoObj != null){
            resultBean = new OCExerciseResultBean();
            resultBean.initByJson(infoObj);
        }
    }

}
